﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace Universe.TaskBarManager.Test
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private TaskbarStateHelper tb;
        protected override void OnActivated(EventArgs e)
        {
            base.OnActivated(e);

            tb = FormsTaskbarExtentions.SetTaskbarAsError(this);
        }

        private void button1_Click(object sender, EventArgs e)
        {
            tb.SetNormalProgress(40, 100);
        }

        private void button2_Click(object sender, EventArgs e)
        {
            tb.SetState(TaskbarStateKind.NoProgress);
        }


    }


}
